//
//  GNTempVc.swift
//  SinaWeChat
//
//  Created by mac on 15/12/5.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class GNTempVc: UIViewController {

    override func viewDidLoad() {
        
        
        
        
        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
        
        view.backgroundColor = UIColor.whiteColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: "push")
    }
    
    
    @objc private func push(){
        
        
        let vc = GNTempVc()
        
        navigationController?.pushViewController(vc, animated: true)
        
        
    }
    
    
    
}
